package org.stvd.entities.admin;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;
import org.stvd.entities.base.BaseEntity;

/**
 * @Title: SysLogoutInfo
 * @Description: 用户账号注销实体类
 * @author houzx
 * @date 2020年9月15日
 */
@Entity
@Table(name = "sys_logout_info")
public class SysLogoutInfo extends BaseEntity{

    private static final long serialVersionUID = 6944834370793859536L;

    /**
     * 主键ID
     */
    @Id
    @Column(name="logout_id", nullable = false)
    private Long logoutId = null;
    
    /**
     * 用户ID
     */
    @Column(name="user_id", nullable = false)
    private String userId = "";
    
    /**
     * 登录类型  UserLoginType枚举类中
     */
    @Column(name="login_type", nullable=false)
    private String loginType = "";
    
    /**
     * 登录账号
     */
    @Column(name="login_account", nullable=false)
    private String loginAccount = "";
    
    /** 操作人员 */
    @Column(name = "oper_name", nullable=false)
    private String operName = "";
    
    /** 操作时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "oper_time", nullable = false)
    private Date operTime = null;

    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark = "";
    
    public Long getLogoutId() {
        return logoutId;
    }

    public void setLogoutId(Long logoutId) {
        this.logoutId = logoutId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getLoginAccount() {
        return loginAccount;
    }

    public void setLoginAccount(String loginAccount) {
        this.loginAccount = loginAccount;
    }

    public String getOperName() {
        return operName;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }

    public Date getOperTime() {
        return operTime;
    }

    public void setOperTime(Date operTime) {
        this.operTime = operTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
